@echo off
echo ==========================================
echo Nutrition System Dish Processing Task Setup
echo ==========================================

echo.
echo Creating task that runs every 10 minutes...
schtasks /create /tn "NutritionSystemDishProcessing" /tr "D:\wwwroot\yingyang\runtime\run_dish_processing.bat" /sc minute /mo 10 /f
if %errorlevel% equ 0 (
    echo ✓ Task created successfully
    echo The task will run every 10 minutes
) else (
    echo ✗ Failed to create task
)

echo.
echo Checking task status...
schtasks /query /tn "NutritionSystemDishProcessing"

echo.
echo Task setup completed.
pause